import {Request} from "@/components/until/Request";
//获取用户的请假信息
function getLeave(url,data){
    return Request.post(url,data);

}
//身份下拉框
function getIdentity(url,data){
    return Request.post(url,data);
}

//提交请假
function postLeave(url,data){
    return Request.post(url,data); 
}

//个人请假记录
function getLeaveInfo(url,data){
    return Request.post(url,data);
}
//修改请假
function updateLeave(url,data){
    return Request.post(url,data);
}
//撤销请假
function revokeLeave(url,data){
    return Request.post(url,data);
}

export {getLeave,getIdentity,postLeave,getLeaveInfo,updateLeave,revokeLeave}